#pragma once
#include <memory>
namespace dymy
{
    class Server
    {
        class ServerImpl;
        std::unique_ptr<ServerImpl> impl_;

    public:
        Server();
        Server(const Server &) = delete;
        Server &operator=(const Server &) = delete;
        Server(Server &&);
        Server &operator=(Server &&);
        void run(uint16_t port = 9005);
        void release();
        ~Server();
    };
}